/**
 * @Author:  renyc
 * @Date: 2022年11月30日23:37:13
 */
'use strict';

import * as Cesium from 'cesium/Cesium';

import Event from "./Event";
import {LayerEventType} from "./EventType";

class LayerEvent extends Event{

    constructor(){
        super();
    }

    /**
     * 注册Layer相关的事件
     */
    _registerEvents(){
        Object.keys(LayerEventType).forEach(key=>{
            let type = LayerEventType[key];
            this._cache[type] = new Cesium.Event();
        })
    }
}

export default LayerEvent

// /**
//  * Overlay的Pick响应
//  */
// OverlayPickEvent = {
//     obj : undefined,
//     layer : undefined
// };

// export default {
//     LayerEvent,
//     OverlayPickEvent
// }
